package main

import (
	"github.com/gin-gonic/gin"
)

func main19() {
	r := gin.Default()
	r.Use(gin.Logger())
	r.GET("/index", func(c *gin.Context) {
		// 手动抛出异常
		panic("访问主页错误")
		c.String(200, "访问主页")
	})

	r.Run(":9080")
}
